<?php
$tdatatbl_hoat_dong_khcn=array();
	$tdatatbl_hoat_dong_khcn[".NumberOfChars"]=80; 
	$tdatatbl_hoat_dong_khcn[".ShortName"]="tbl_hoat_dong_khcn";
	$tdatatbl_hoat_dong_khcn[".OwnerID"]="";
	$tdatatbl_hoat_dong_khcn[".OriginalTable"]="tbl_hoat_dong_khcn";


	
//	field labels
$fieldLabelstbl_hoat_dong_khcn = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelstbl_hoat_dong_khcn["English"]=array();
	$fieldToolTipstbl_hoat_dong_khcn["English"]=array();
	$fieldLabelstbl_hoat_dong_khcn["English"]["id"] = "Id";
	$fieldToolTipstbl_hoat_dong_khcn["English"]["id"] = "";
	$fieldLabelstbl_hoat_dong_khcn["English"]["ten_hoat_dong"] = "Ten Hoat Dong";
	$fieldToolTipstbl_hoat_dong_khcn["English"]["ten_hoat_dong"] = "";
	$fieldLabelstbl_hoat_dong_khcn["English"]["hinh_anh"] = "Hinh Anh";
	$fieldToolTipstbl_hoat_dong_khcn["English"]["hinh_anh"] = "";
	$fieldLabelstbl_hoat_dong_khcn["English"]["mo_ta_ngan_gon"] = "Mo Ta Ngan Gon";
	$fieldToolTipstbl_hoat_dong_khcn["English"]["mo_ta_ngan_gon"] = "";
	$fieldLabelstbl_hoat_dong_khcn["English"]["mo_ta_chi_tiet"] = "Mo Ta Chi Tiet";
	$fieldToolTipstbl_hoat_dong_khcn["English"]["mo_ta_chi_tiet"] = "";
	$fieldLabelstbl_hoat_dong_khcn["English"]["ma_danh_muc_hoat_dong"] = "Ma Danh Muc Hoat Dong";
	$fieldToolTipstbl_hoat_dong_khcn["English"]["ma_danh_muc_hoat_dong"] = "";
	$fieldLabelstbl_hoat_dong_khcn["English"]["ten_danh_muc_hoat_dong"] = "Ten Danh Muc Hoat Dong";
	$fieldToolTipstbl_hoat_dong_khcn["English"]["ten_danh_muc_hoat_dong"] = "";
	if (count($fieldToolTipstbl_hoat_dong_khcn["English"])){
		$tdatatbl_hoat_dong_khcn[".isUseToolTips"]=true;
	}
}


	
	$tdatatbl_hoat_dong_khcn[".NCSearch"]=true;

	

$tdatatbl_hoat_dong_khcn[".shortTableName"] = "tbl_hoat_dong_khcn";
$tdatatbl_hoat_dong_khcn[".nSecOptions"] = 0;
$tdatatbl_hoat_dong_khcn[".recsPerRowList"] = 1;	
$tdatatbl_hoat_dong_khcn[".tableGroupBy"] = "0";
$tdatatbl_hoat_dong_khcn[".mainTableOwnerID"] = "";
$tdatatbl_hoat_dong_khcn[".moveNext"] = 1;




$tdatatbl_hoat_dong_khcn[".showAddInPopup"] = false;

$tdatatbl_hoat_dong_khcn[".showEditInPopup"] = false;

$tdatatbl_hoat_dong_khcn[".showViewInPopup"] = false;


$tdatatbl_hoat_dong_khcn[".fieldsForRegister"] = array();

$tdatatbl_hoat_dong_khcn[".listAjax"] = false;

	$tdatatbl_hoat_dong_khcn[".audit"] = false;

	$tdatatbl_hoat_dong_khcn[".locking"] = false;
	
$tdatatbl_hoat_dong_khcn[".listIcons"] = true;
$tdatatbl_hoat_dong_khcn[".edit"] = true;
$tdatatbl_hoat_dong_khcn[".inlineEdit"] = true;
$tdatatbl_hoat_dong_khcn[".view"] = true;

$tdatatbl_hoat_dong_khcn[".exportTo"] = true;

$tdatatbl_hoat_dong_khcn[".printFriendly"] = true;

$tdatatbl_hoat_dong_khcn[".delete"] = true;

$tdatatbl_hoat_dong_khcn[".showSimpleSearchOptions"] = false;

$tdatatbl_hoat_dong_khcn[".showSearchPanel"] = true;


$tdatatbl_hoat_dong_khcn[".isUseAjaxSuggest"] = true;

$tdatatbl_hoat_dong_khcn[".rowHighlite"] = true;


// button handlers file names

$tdatatbl_hoat_dong_khcn[".addPageEvents"] = false;

$tdatatbl_hoat_dong_khcn[".arrKeyFields"][] = "id";

// use datepicker for search panel
$tdatatbl_hoat_dong_khcn[".isUseCalendarForSearch"] = false;

// use timepicker for search panel
$tdatatbl_hoat_dong_khcn[".isUseTimeForSearch"] = false;

$tdatatbl_hoat_dong_khcn[".isUseiBox"] = false;



$tdatatbl_hoat_dong_khcn[".isUseInlineAdd"] = true;

$tdatatbl_hoat_dong_khcn[".isUseInlineEdit"] = true;
$tdatatbl_hoat_dong_khcn[".isUseInlineJs"] = $tdatatbl_hoat_dong_khcn[".isUseInlineAdd"] || $tdatatbl_hoat_dong_khcn[".isUseInlineEdit"];

$tdatatbl_hoat_dong_khcn[".allSearchFields"] = array();

$tdatatbl_hoat_dong_khcn[".globSearchFields"][] = "ten_hoat_dong";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ten_hoat_dong", $tdatatbl_hoat_dong_khcn[".allSearchFields"]))
{
	$tdatatbl_hoat_dong_khcn[".allSearchFields"][] = "ten_hoat_dong";	
}
$tdatatbl_hoat_dong_khcn[".globSearchFields"][] = "hinh_anh";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("hinh_anh", $tdatatbl_hoat_dong_khcn[".allSearchFields"]))
{
	$tdatatbl_hoat_dong_khcn[".allSearchFields"][] = "hinh_anh";	
}
$tdatatbl_hoat_dong_khcn[".globSearchFields"][] = "mo_ta_ngan_gon";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("mo_ta_ngan_gon", $tdatatbl_hoat_dong_khcn[".allSearchFields"]))
{
	$tdatatbl_hoat_dong_khcn[".allSearchFields"][] = "mo_ta_ngan_gon";	
}
$tdatatbl_hoat_dong_khcn[".globSearchFields"][] = "ma_danh_muc_hoat_dong";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ma_danh_muc_hoat_dong", $tdatatbl_hoat_dong_khcn[".allSearchFields"]))
{
	$tdatatbl_hoat_dong_khcn[".allSearchFields"][] = "ma_danh_muc_hoat_dong";	
}
$tdatatbl_hoat_dong_khcn[".globSearchFields"][] = "ten_danh_muc_hoat_dong";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ten_danh_muc_hoat_dong", $tdatatbl_hoat_dong_khcn[".allSearchFields"]))
{
	$tdatatbl_hoat_dong_khcn[".allSearchFields"][] = "ten_danh_muc_hoat_dong";	
}


$tdatatbl_hoat_dong_khcn[".googleLikeFields"][] = "id";
$tdatatbl_hoat_dong_khcn[".googleLikeFields"][] = "ten_hoat_dong";
$tdatatbl_hoat_dong_khcn[".googleLikeFields"][] = "hinh_anh";
$tdatatbl_hoat_dong_khcn[".googleLikeFields"][] = "mo_ta_ngan_gon";
$tdatatbl_hoat_dong_khcn[".googleLikeFields"][] = "ma_danh_muc_hoat_dong";
$tdatatbl_hoat_dong_khcn[".googleLikeFields"][] = "ten_danh_muc_hoat_dong";



$tdatatbl_hoat_dong_khcn[".advSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatatbl_hoat_dong_khcn[".allSearchFields"])) 
{
	$tdatatbl_hoat_dong_khcn[".allSearchFields"][] = "id";	
}
$tdatatbl_hoat_dong_khcn[".advSearchFields"][] = "ten_hoat_dong";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ten_hoat_dong", $tdatatbl_hoat_dong_khcn[".allSearchFields"])) 
{
	$tdatatbl_hoat_dong_khcn[".allSearchFields"][] = "ten_hoat_dong";	
}
$tdatatbl_hoat_dong_khcn[".advSearchFields"][] = "hinh_anh";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("hinh_anh", $tdatatbl_hoat_dong_khcn[".allSearchFields"])) 
{
	$tdatatbl_hoat_dong_khcn[".allSearchFields"][] = "hinh_anh";	
}
$tdatatbl_hoat_dong_khcn[".advSearchFields"][] = "mo_ta_ngan_gon";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("mo_ta_ngan_gon", $tdatatbl_hoat_dong_khcn[".allSearchFields"])) 
{
	$tdatatbl_hoat_dong_khcn[".allSearchFields"][] = "mo_ta_ngan_gon";	
}
$tdatatbl_hoat_dong_khcn[".advSearchFields"][] = "mo_ta_chi_tiet";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("mo_ta_chi_tiet", $tdatatbl_hoat_dong_khcn[".allSearchFields"])) 
{
	$tdatatbl_hoat_dong_khcn[".allSearchFields"][] = "mo_ta_chi_tiet";	
}
$tdatatbl_hoat_dong_khcn[".advSearchFields"][] = "ma_danh_muc_hoat_dong";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ma_danh_muc_hoat_dong", $tdatatbl_hoat_dong_khcn[".allSearchFields"])) 
{
	$tdatatbl_hoat_dong_khcn[".allSearchFields"][] = "ma_danh_muc_hoat_dong";	
}
$tdatatbl_hoat_dong_khcn[".advSearchFields"][] = "ten_danh_muc_hoat_dong";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ten_danh_muc_hoat_dong", $tdatatbl_hoat_dong_khcn[".allSearchFields"])) 
{
	$tdatatbl_hoat_dong_khcn[".allSearchFields"][] = "ten_danh_muc_hoat_dong";	
}

$tdatatbl_hoat_dong_khcn[".isTableType"] = "list";


	

$tdatatbl_hoat_dong_khcn[".isDisplayLoading"] = true;

$tdatatbl_hoat_dong_khcn[".isResizeColumns"] = false;





$tdatatbl_hoat_dong_khcn[".pageSize"] = 20;

$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdatatbl_hoat_dong_khcn[".strOrderBy"] = $gstrOrderBy;
	
$tdatatbl_hoat_dong_khcn[".orderindexes"] = array();

$tdatatbl_hoat_dong_khcn[".sqlHead"] = "SELECT tbl_hoat_dong_khcn.id,  tbl_hoat_dong_khcn.ten_hoat_dong,  tbl_hoat_dong_khcn.hinh_anh,  tbl_hoat_dong_khcn.mo_ta_ngan_gon,  tbl_hoat_dong_khcn.mo_ta_chi_tiet,  tbl_hoat_dong_khcn.ma_danh_muc_hoat_dong,  tbl_danh_muc_hoat_dong_khcn.ten_danh_muc_hoat_dong";
$tdatatbl_hoat_dong_khcn[".sqlFrom"] = "FROM tbl_hoat_dong_khcn  INNER JOIN tbl_danh_muc_hoat_dong_khcn ON tbl_hoat_dong_khcn.ma_danh_muc_hoat_dong = tbl_danh_muc_hoat_dong_khcn.id";
$tdatatbl_hoat_dong_khcn[".sqlWhereExpr"] = "";
$tdatatbl_hoat_dong_khcn[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdatatbl_hoat_dong_khcn[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdatatbl_hoat_dong_khcn[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "id";
	$tdatatbl_hoat_dong_khcn[".Keys"] = $tableKeys;

//	id
	$fdata = array();
	$fdata["strName"] = "id";
	$fdata["ownerTable"] = "tbl_hoat_dong_khcn";
		$fdata["Label"]="Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		$fdata["AutoInc"]=true;
	
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "id";
	
		$fdata["FullName"]= "tbl_hoat_dong_khcn.id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			
		
		
		
		
		
		
		
		
		
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				
		
				
		
		
		
			$tdatatbl_hoat_dong_khcn["id"]=$fdata;
//	ten_hoat_dong
	$fdata = array();
	$fdata["strName"] = "ten_hoat_dong";
	$fdata["ownerTable"] = "tbl_hoat_dong_khcn";
		$fdata["Label"]="Ten Hoat Dong"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "ten_hoat_dong";
	
		$fdata["FullName"]= "tbl_hoat_dong_khcn.ten_hoat_dong";
	
		
		
		
		
		
				$fdata["Index"]= 2;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=200";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_hoat_dong_khcn["ten_hoat_dong"]=$fdata;
//	hinh_anh
	$fdata = array();
	$fdata["strName"] = "hinh_anh";
	$fdata["ownerTable"] = "tbl_hoat_dong_khcn";
		$fdata["Label"]="Hinh Anh"; 
	
		
		$fdata["LinkPrefix"]="upload/"; 
	
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Document upload";
	$fdata["ViewFormat"]= "Document Download";
	
		
		
		
		
		
	$fdata["GoodName"]= "hinh_anh";
	
		$fdata["FullName"]= "tbl_hoat_dong_khcn.hinh_anh";
	
		
		
		
		
		
			$fdata["UploadFolder"]="upload"; 
		$fdata["Index"]= 3;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_hoat_dong_khcn["hinh_anh"]=$fdata;
//	mo_ta_ngan_gon
	$fdata = array();
	$fdata["strName"] = "mo_ta_ngan_gon";
	$fdata["ownerTable"] = "tbl_hoat_dong_khcn";
		$fdata["Label"]="Mo Ta Ngan Gon"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "mo_ta_ngan_gon";
	
		$fdata["FullName"]= "tbl_hoat_dong_khcn.mo_ta_ngan_gon";
	
		
		
		
		
		
				$fdata["Index"]= 4;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=200";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_hoat_dong_khcn["mo_ta_ngan_gon"]=$fdata;
//	mo_ta_chi_tiet
	$fdata = array();
	$fdata["strName"] = "mo_ta_chi_tiet";
	$fdata["ownerTable"] = "tbl_hoat_dong_khcn";
		$fdata["Label"]="Mo Ta Chi Tiet"; 
	
		
		
	$fdata["FieldType"]= 128;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text area";
	$fdata["ViewFormat"]= "HTML";
	
		
		
		
		
		
	$fdata["GoodName"]= "mo_ta_chi_tiet";
	
		$fdata["FullName"]= "tbl_hoat_dong_khcn.mo_ta_chi_tiet";
	
		
		$fdata["UseRTE"]=true; 
	
		
		$fdata["UseRTEFCK"] = true;
	
		
				$fdata["Index"]= 5;
			$fdata["EditParams"] = "";
			$fdata["EditParams"].= " rows=1200";
		$fdata["nRows"] = 1200;
			$fdata["EditParams"].= " cols=600";
		$fdata["nCols"] = 600;
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		
		$fdata["bPrinterPage"]=true; 
	
		
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_hoat_dong_khcn["mo_ta_chi_tiet"]=$fdata;
//	ma_danh_muc_hoat_dong
	$fdata = array();
	$fdata["strName"] = "ma_danh_muc_hoat_dong";
	$fdata["ownerTable"] = "tbl_hoat_dong_khcn";
		$fdata["Label"]="Ma Danh Muc Hoat Dong"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Lookup wizard";
	$fdata["ViewFormat"]= "";
	
		
		$fdata["LookupType"]=1;
	$fdata["pLookupType"] = 1;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
										$fdata["LinkField"]="id";
	$fdata["LinkFieldType"]=3;
	$fdata["DisplayField"]="ten_danh_muc_hoat_dong";
				$fdata["LookupTable"]="tbl_danh_muc_hoat_dong_khcn";
	$fdata["LookupOrderBy"]="";
																			
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "ma_danh_muc_hoat_dong";
	
		$fdata["FullName"]= "tbl_hoat_dong_khcn.ma_danh_muc_hoat_dong";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 6;
				
		
		$fdata["bAddPage"]=true; 
	
		
		$fdata["bEditPage"]=true; 
	
		
		
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_hoat_dong_khcn["ma_danh_muc_hoat_dong"]=$fdata;
//	ten_danh_muc_hoat_dong
	$fdata = array();
	$fdata["strName"] = "ten_danh_muc_hoat_dong";
	$fdata["ownerTable"] = "tbl_danh_muc_hoat_dong_khcn";
		$fdata["Label"]="Ten Danh Muc Hoat Dong"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "ten_danh_muc_hoat_dong";
	
		$fdata["FullName"]= "tbl_danh_muc_hoat_dong_khcn.ten_danh_muc_hoat_dong";
	
		
		
		
		
		
				$fdata["Index"]= 7;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_hoat_dong_khcn["ten_danh_muc_hoat_dong"]=$fdata;

	
$tables_data["tbl_hoat_dong_khcn"]=&$tdatatbl_hoat_dong_khcn;
$field_labels["tbl_hoat_dong_khcn"] = &$fieldLabelstbl_hoat_dong_khcn;
$fieldToolTips["tbl_hoat_dong_khcn"] = &$fieldToolTipstbl_hoat_dong_khcn;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["tbl_hoat_dong_khcn"] = array();

	
// tables which are master tables for current table (detail)
$masterTablesData["tbl_hoat_dong_khcn"] = array();

$mIndex = 1-1;
			$strOriginalDetailsTable="tbl_danh_muc_hoat_dong_khcn";
	$masterTablesData["tbl_hoat_dong_khcn"][$mIndex] = array(
		  "mDataSourceTable"=>"tbl_danh_muc_hoat_dong_khcn"
		, "mOriginalTable" => $strOriginalDetailsTable
		, "mShortTable" => "tbl_danh_muc_hoat_dong_khcn"
		, "masterKeys" => array()
		, "detailKeys" => array()
		, "dispChildCount" => "1"
		, "hideChild" => "0"	
		, "dispInfo" => "1"								
		, "previewOnList" => 1
		, "previewOnAdd" => 0
		, "previewOnEdit" => 0
		, "previewOnView" => 0
	);	
		$masterTablesData["tbl_hoat_dong_khcn"][$mIndex]["masterKeys"][]="id";
		$masterTablesData["tbl_hoat_dong_khcn"][$mIndex]["detailKeys"][]="ma_danh_muc_hoat_dong";

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










$proto172=array();
$proto172["m_strHead"] = "SELECT";
$proto172["m_strFieldList"] = "tbl_hoat_dong_khcn.id,  tbl_hoat_dong_khcn.ten_hoat_dong,  tbl_hoat_dong_khcn.hinh_anh,  tbl_hoat_dong_khcn.mo_ta_ngan_gon,  tbl_hoat_dong_khcn.mo_ta_chi_tiet,  tbl_hoat_dong_khcn.ma_danh_muc_hoat_dong,  tbl_danh_muc_hoat_dong_khcn.ten_danh_muc_hoat_dong";
$proto172["m_strFrom"] = "FROM tbl_hoat_dong_khcn  INNER JOIN tbl_danh_muc_hoat_dong_khcn ON tbl_hoat_dong_khcn.ma_danh_muc_hoat_dong = tbl_danh_muc_hoat_dong_khcn.id";
$proto172["m_strWhere"] = "";
$proto172["m_strOrderBy"] = "";
$proto172["m_strTail"] = "";
$proto173=array();
$proto173["m_sql"] = "";
$proto173["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto173["m_column"]=$obj;
$proto173["m_contained"] = array();
$proto173["m_strCase"] = "";
$proto173["m_havingmode"] = "0";
$proto173["m_inBrackets"] = "0";
$proto173["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto173);

$proto172["m_where"] = $obj;
$proto175=array();
$proto175["m_sql"] = "";
$proto175["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto175["m_column"]=$obj;
$proto175["m_contained"] = array();
$proto175["m_strCase"] = "";
$proto175["m_havingmode"] = "0";
$proto175["m_inBrackets"] = "0";
$proto175["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto175);

$proto172["m_having"] = $obj;
$proto172["m_fieldlist"] = array();
						$proto177=array();
			$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "tbl_hoat_dong_khcn"
));

$proto177["m_expr"]=$obj;
$proto177["m_alias"] = "";
$obj = new SQLFieldListItem($proto177);

$proto172["m_fieldlist"][]=$obj;
						$proto179=array();
			$obj = new SQLField(array(
	"m_strName" => "ten_hoat_dong",
	"m_strTable" => "tbl_hoat_dong_khcn"
));

$proto179["m_expr"]=$obj;
$proto179["m_alias"] = "";
$obj = new SQLFieldListItem($proto179);

$proto172["m_fieldlist"][]=$obj;
						$proto181=array();
			$obj = new SQLField(array(
	"m_strName" => "hinh_anh",
	"m_strTable" => "tbl_hoat_dong_khcn"
));

$proto181["m_expr"]=$obj;
$proto181["m_alias"] = "";
$obj = new SQLFieldListItem($proto181);

$proto172["m_fieldlist"][]=$obj;
						$proto183=array();
			$obj = new SQLField(array(
	"m_strName" => "mo_ta_ngan_gon",
	"m_strTable" => "tbl_hoat_dong_khcn"
));

$proto183["m_expr"]=$obj;
$proto183["m_alias"] = "";
$obj = new SQLFieldListItem($proto183);

$proto172["m_fieldlist"][]=$obj;
						$proto185=array();
			$obj = new SQLField(array(
	"m_strName" => "mo_ta_chi_tiet",
	"m_strTable" => "tbl_hoat_dong_khcn"
));

$proto185["m_expr"]=$obj;
$proto185["m_alias"] = "";
$obj = new SQLFieldListItem($proto185);

$proto172["m_fieldlist"][]=$obj;
						$proto187=array();
			$obj = new SQLField(array(
	"m_strName" => "ma_danh_muc_hoat_dong",
	"m_strTable" => "tbl_hoat_dong_khcn"
));

$proto187["m_expr"]=$obj;
$proto187["m_alias"] = "";
$obj = new SQLFieldListItem($proto187);

$proto172["m_fieldlist"][]=$obj;
						$proto189=array();
			$obj = new SQLField(array(
	"m_strName" => "ten_danh_muc_hoat_dong",
	"m_strTable" => "tbl_danh_muc_hoat_dong_khcn"
));

$proto189["m_expr"]=$obj;
$proto189["m_alias"] = "";
$obj = new SQLFieldListItem($proto189);

$proto172["m_fieldlist"][]=$obj;
$proto172["m_fromlist"] = array();
												$proto191=array();
$proto191["m_link"] = "SQLL_MAIN";
			$proto192=array();
$proto192["m_strName"] = "tbl_hoat_dong_khcn";
$proto192["m_columns"] = array();
$proto192["m_columns"][] = "id";
$proto192["m_columns"][] = "ten_hoat_dong";
$proto192["m_columns"][] = "hinh_anh";
$proto192["m_columns"][] = "mo_ta_ngan_gon";
$proto192["m_columns"][] = "mo_ta_chi_tiet";
$proto192["m_columns"][] = "ma_danh_muc_hoat_dong";
$obj = new SQLTable($proto192);

$proto191["m_table"] = $obj;
$proto191["m_alias"] = "";
$proto193=array();
$proto193["m_sql"] = "";
$proto193["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto193["m_column"]=$obj;
$proto193["m_contained"] = array();
$proto193["m_strCase"] = "";
$proto193["m_havingmode"] = "0";
$proto193["m_inBrackets"] = "0";
$proto193["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto193);

$proto191["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto191);

$proto172["m_fromlist"][]=$obj;
												$proto195=array();
$proto195["m_link"] = "SQLL_INNERJOIN";
			$proto196=array();
$proto196["m_strName"] = "tbl_danh_muc_hoat_dong_khcn";
$proto196["m_columns"] = array();
$proto196["m_columns"][] = "id";
$proto196["m_columns"][] = "ten_danh_muc_hoat_dong";
$obj = new SQLTable($proto196);

$proto195["m_table"] = $obj;
$proto195["m_alias"] = "";
$proto197=array();
$proto197["m_sql"] = "tbl_hoat_dong_khcn.ma_danh_muc_hoat_dong = tbl_danh_muc_hoat_dong_khcn.id";
$proto197["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "ma_danh_muc_hoat_dong",
	"m_strTable" => "tbl_hoat_dong_khcn"
));

$proto197["m_column"]=$obj;
$proto197["m_contained"] = array();
$proto197["m_strCase"] = "= tbl_danh_muc_hoat_dong_khcn.id";
$proto197["m_havingmode"] = "0";
$proto197["m_inBrackets"] = "0";
$proto197["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto197);

$proto195["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto195);

$proto172["m_fromlist"][]=$obj;
$proto172["m_groupby"] = array();
$proto172["m_orderby"] = array();
$obj = new SQLQuery($proto172);

$queryData_tbl_hoat_dong_khcn = $obj;
$tdatatbl_hoat_dong_khcn[".sqlquery"] = $queryData_tbl_hoat_dong_khcn;

$tableEvents["tbl_hoat_dong_khcn"] = new eventsBase;

?>
